package com.rmdjzz.slmmn.pojo.base;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.rmdjzz.slmmn.pojo.BasePojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;


/**
 * 用户表
 * @作者 张绍鑫
 * @创建时间 2023/5/26
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class User extends BasePojo {
    @TableId(type = IdType.AUTO)
    private Integer id;//用户id
    private String userName;//用户名
    private String sex;//性别
    private Integer age;//年龄
    private String account;//账号
    private String password;//密码

    public User(Date createTime, Date updateTime, Integer deleted, Integer id, String userName, String sex, Integer age, String account, String password) {
        super(createTime, updateTime, deleted);
        this.id = id;
        this.userName = userName;
        this.sex = sex;
        this.age = age;
        this.account = account;
        this.password = password;
    }
}
